import { PluginDefinition } from 'yam-types'
import accessOperator from './handlers/access'
import * as schema from './schema.json'
import { AccessApproachConfig } from './types'
import { name, version } from './package.json'

export default {
  name,
  schema,
  version,
  handlers: {
    'access[*]': accessOperator
  }
} as PluginDefinition<AccessApproachConfig>